var
	n,i,j,k,count:integer;
begin
	count:=0;
	read(n);
	j:= (n mod 10)*10+ n div 10;
	for i:=11 to 99 do
	begin
		if i mod 10 = 0 then
			continue;
		k:=(i mod 10)*10+ i div 10;
		if (n+i=j+k) and (n<> k) then
		begin
			writeln(i);
			inc(count);
		end;
	end;
	if count=0 then writeln('No!');
end.
